package cn.taoticket.client;
import cn.taoticket.pojo.TaoticketSchedulerSeatPrice;

import cn.taoticket.fallback.TaoticketSchedulerSeatPriceClientFallBack;
import java.util.List;
import java.util.Map;

import cn.taoticket.config.TaoTicketConfiguration;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestBody;
/**
* Created by shang-pc on 2018/5/15.
*/
@FeignClient(name = "taoticket-scheduler-provider", configuration = TaoTicketConfiguration.class, fallback = TaoticketSchedulerSeatPriceClientFallBack.class)
public interface RestTaoticketSchedulerSeatPriceClient {
@RequestMapping(value = "/getTaoticketSchedulerSeatPriceById",method = RequestMethod.POST)
public TaoticketSchedulerSeatPrice getTaoticketSchedulerSeatPriceById(@RequestParam("id") Long id)throws Exception;

@RequestMapping(value = "/getTaoticketSchedulerSeatPriceListByMap",method = RequestMethod.POST)
public List<TaoticketSchedulerSeatPrice>	getTaoticketSchedulerSeatPriceListByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/getTaoticketSchedulerSeatPriceCountByMap",method = RequestMethod.POST)
public Integer getTaoticketSchedulerSeatPriceCountByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/qdtxAddTaoticketSchedulerSeatPrice",method = RequestMethod.POST)
public Integer qdtxAddTaoticketSchedulerSeatPrice(@RequestBody TaoticketSchedulerSeatPrice taoticketSchedulerSeatPrice)throws Exception;

@RequestMapping(value = "/qdtxModifyTaoticketSchedulerSeatPrice",method = RequestMethod.POST)
public Integer qdtxModifyTaoticketSchedulerSeatPrice(@RequestBody TaoticketSchedulerSeatPrice taoticketSchedulerSeatPrice)throws Exception;

 @RequestMapping(value = "/getTaoticketSchedulerSeatPriceByScheduleIdAndArea",method = RequestMethod.POST)
    public TaoticketSchedulerSeatPrice getTaoticketSchedulerSeatPriceByScheduleIdAndArea(@RequestParam("scheduleId") Long scheduleId,
                                                                                         @RequestParam("areaLevel") Integer areaLevel)throws Exception;
}


